FROM swr.cn-north-4.myhuaweicloud.com/sang/small:0.0.1
WORKDIR /home/openharmony
RUN wget -P /home/tools https://repo.huaweicloud.com/harmonyos/compiler/gcc_riscv32/7.3.0/linux/gcc_riscv32-linux-7.3.0.tar.gz \
	&& wget -p /home/tolls https://repo.huaweicloud.com/harmonyos/compiler/gcc-arm-none-eabi/10.3/linux/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 \
	&& tar -xvf /home/tools/gcc_riscv32-linux-7.3.0.tar.gz -C /home/tools \
	&& tar -jxvf /home/tools/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -C /home/tools \
	&& rm -rf /home/tools/*.gz \
	&& rm -rf /home/tools/*.bz2 

ENV PATH="/home/tools/gcc_riscv32/bin:/home/tools/gcc-arm-none-eabi-10.3-2021.10/bin:$PATH"
